package game.components;

import game.players.SoccerPlayer;

import java.awt.Color;

import com.uqbar.vainilla.DeltaState;
import com.uqbar.vainilla.appearances.Circle;

public class UserPlayerMark extends WorldSprite{
	
	SoccerPlayer player;

	public UserPlayerMark(SoccerPlayer sp) {
		super(sp.getX(),sp.getY());
		this.player = sp;
		this.setAppearance(new Circle(Color.RED,10));
	}
	
	@Override
	public void update(DeltaState deltaState) {
		super.update(deltaState);
		this.setX(this.player.getX());
		this.setY(this.player.getY());
	}

}
